FROM openjdk:8-jdk-slim
LABEL maintainer=王令令

ARG JAR_FILE
ARG WORKDIR

WORKDIR /${WORKDIR}

COPY /target/${JAR_FILE}.jar /${WORKDIR}/app.jar

ENTRYPOINT ["java", "-jar", "app.jar"]